package struts.actionForm;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionMessage;

public class BeanListeCandidStage extends ActionForm {

	private static final long serialVersionUID = -4125774302623608297L;
	String stageSelec;

	public String getStageSelec() {
		return stageSelec;
	}

	public void setStageSelec(String stageSelec) {
		this.stageSelec = stageSelec;
	}

	public BeanListeCandidStage() {
		super();
	}

	@Override
	public ActionErrors validate(ActionMapping mapping,
			HttpServletRequest request) {
		ActionErrors erreurs = new ActionErrors();
		if(stageSelec == null)
			erreurs.add("rien", new ActionMessage("beanListeCandidatures.erreur.aucun.stage.selec"));
		
		return erreurs;
	}
	
	

}
